<pre>  /**
     */
    protected Widget createTab() {
        VerticalPanel panel = new VerticalPanel();

        LabelTextBox field1 = new LabelTextBox("Majuscule formateur");
        field1.addFormator(new UpperCaseFormator());
        panel.add(field1);

        LabelTextBox field2 = new LabelTextBox("Majuscule formateur avec valeur de départ");
        field2.addFormator(new UpperCaseFormator());
        field2.setValue("toto");
        panel.add(field2);

        LabelTextBox field3 = new LabelTextBox("Minuscule formateur");
        field3.addFormator(new LowerCaseFormator());
        field3.setValue("ToTo");
        panel.add(field3);

        LabelTextBox field4 = new LabelTextBox("Trim formateur");
        field4.addFormator(new TrimFormator());
        field4.setValue("   ToTo    ");
        panel.add(field4);

        LabelTextBox field5 = new LabelTextBox("Regex formateur");
        field5.addFormator(new RegexFormator("([^a-zA-Z0-9]|[-])+", "-"));
        field5.setValue("T_o!T'o ");
        panel.add(field5);

        FormatorHandler&lt;String&gt; customFormator = new Formator&lt;String&gt;() {
            public String format(String value) {
                int i, len = value.length();
                StringBuffer dest = new StringBuffer(len);

                for (i = (len - 1); i &gt;= 0; i--)
                    dest.append(value.charAt(i));
                return dest.toString();
            }
        };

        LabelTextBox field6 = new LabelTextBox("Formateur Personalisé (Retourne le texte)");
        field6.addFormator(customFormator);
        field6.setValue("fedcba");
        panel.add(field6);

        LabelTextBox field7 = new LabelTextBox("Plusieurs Formateurs");
        field7.addFormator(customFormator);
        field7.addFormator(new TrimFormator());
        field7.addFormator(new UpperCaseFormator());
        field7.addFormator(new RegexFormator("([^a-zA-Z0-9]|[-])+", "-"));
        field7.setValue("  fed'!:cba  ");
        panel.add(field7);
        

        LabelTextBox field8 = new LabelTextBox("Formateur Personalisé");
        field8.addFormator(new Formator&lt;String&gt;() {
            @Override
            public String format(String value) {
                return value.replace("a", "b");
            }
        });
        panel.add(field8);

        return panel;
    }

</pre>